import { createRouter, createWebHashHistory } from "vue-router";

import ChatPage from './components/chat/ChatPage.vue';
import NotFoundPage from './components/notfound/NotFoundPage.vue';

const routes = [
    {path: '/chat', component: ChatPage},
    // 默认匹配
    {path: '/:others(.*)', component: NotFoundPage}
]

const router = createRouter({
    history: createWebHashHistory(),
    routes: routes
})

export default router;